<?php
namespace app\admin\validate;

/**
 * 验证器
 */
use think\Validate;

class Welfare extends Validate
{
    protected $rule = [
        'names'   => 'require',
        'title'   => 'require',
        'content' => 'require',
        'goods'   => 'require',
    ];

    protected $message = [
        'names.require'   => '接收人名称必须',
        'title.require'   => '标题名称必须',
        'content.require' => '内容必须',
        //'num.>='  => '数量必须大于',
        //
    ];

}
